package com.foreknow.demo2;

public class A {
    private String name;
//    public A() {
//        System.out.println("调用默认的构造方法......");
//    }
    //有参数的构造方法
    public A(String name) {
        this.name = name;
    }
}
